package com.ithei.多线程第二天.并发工具类.countDownLatch;

import java.util.concurrent.CountDownLatch;

public class Test1 {
    public static void main(String[] args) {
        CountDownLatch countDownLatch = new CountDownLatch(2);
        HuiYi hy=new HuiYi(countDownLatch);
        hy.setName("会议室");
        Zhao zhao=new Zhao(countDownLatch);
        zhao.setName("赵总");
        Zhang zhang=new Zhang(countDownLatch);
        zhang.setName("张总");
        hy.start();
        zhao.start();
        zhang.start();

    }
}
